package com.example.demo.component.proxy.cglib.dispatcher;

import com.example.demo.component.proxy.cglib.lazy.PropertyBean;

/**
 * @ClassName Main
 * @Description
 * @date 2023/4/6 14:38
 * @Author yanceysong
 * @Version 1.0
 */
public class Main {
    public static void main(String[] args) {
        DispatcherBean dispatcherBean = new DispatcherBean();
        System.out.println(dispatcherBean.getName());
        System.out.println(dispatcherBean.getValue());
        PropertyBean pb = dispatcherBean.getPropertyBean();
        System.out.println(pb.getPropertyName());
        //在每次访问时都要进行回调
        System.out.println(pb.getPropertyValue());
    }
}
